package com.summer.mall.expection;

import com.summer.mall.common.ResponseCode;


public class MallException extends RuntimeException{

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public MallException(ResponseCode resultEnum) {
        super(resultEnum.getDesc());
        this.code = resultEnum.getCode();
    }

    public MallException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
